#include "applyfriendwidget.h"
#include "ui_applyfriendwidget.h"

ApplyFriendWidget::ApplyFriendWidget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::ApplyFriendWidget)
{
    ui->setupUi(this);

    // 限制最大输入长度为20个字符
    ui->inputAlias->setMaxLength(20);
    ui->inputVerifiedInfo->setMaxLength(50);


}

ApplyFriendWidget::~ApplyFriendWidget()
{
    delete ui;
}

QLabel* ApplyFriendWidget::getUserIdShow()
{
    return ui->labelShowId;
}

QLabel* ApplyFriendWidget::getNicknameShow()
{
    return ui->labelShowNickname;
}
QLineEdit* ApplyFriendWidget::getInputAlias()
{
    return ui->inputAlias;
}

QLineEdit* ApplyFriendWidget::getInputVerifiedInfo()
{
    return ui->inputVerifiedInfo;
}

QPushButton* ApplyFriendWidget::getSubmitBtn()
{
    return ui->btnApply;
}
